package com.qf.agro.pojo.device;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("sa_agro_smartdevice_log")
public class SmartDeviceLog {
    @TableId
    private Long id;

    private Long deviceId;
    @Excel(name = "设备名称",width = 30)
    private String deviceName;

    private Long facilitiesId;
    @Excel(name = "所属大棚名称",width = 30)
    private String facilitiesName;
    @Excel(name = "操作",width = 30)
    private String code;

    private Integer userId;
    @Excel(name = "操作",enumExportField ="yyyy-MM-dd HH:mm:ss" ,width = 30)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;

    private Integer companyId;

    private String companyName;
}
